package com.shengdai.urms.core.model;

import java.util.Calendar;

/**
 */
public class UmUser implements java.io.Serializable {

	public static final String	USER_FLAG			= "YG";		// 普通员工的唯一标志
	private static final long	serialVersionUID	= 30028016L;

	private String				userid;							// 用户ID
	private String				username;							// 用户名称
	private String				logonid;							// 登录帐号
	private String				password;							// 登录密码
	private String				emploeeid;							// 用工ID
	private String				enname;							// 英文名
	private String				fullname;							// 全名
	private String				title;								// 职务
	private String				email;								// 电子邮件
	private String				officephone;						// 办公电话
	private String				mobile;							// 移动电话
	private String				fax;								// 传真
	private String				memo;								// 备注
	private Calendar			createdate;						// 创建日期
	private Calendar			age;								// 使用期限
	private String				postid;							// 岗位
	private String				parentids;							// 全部父ID
	private String				parentnames;						// 全部父名称
	private String				parenttypes;						// 全部父组织类型
	private String				orgid;								// 直属部门
	private String				mulriple;							// 多重身份（用，隔开）
	private Float				showorder;							// 显示顺序
	private String				leader;							// 领导人
	private String				sapid;								// sapid
	private String				logintype;							// 登录类型 --wzz (0.多IP登录,1.多窗口登录,2.唯一登录
	private String				status;							// 是否离职标志 (0.离职 1.在职 2.停职 3.冻结)
	private String				ukeyenabled;						// ukey是否可用 Y-是，N-否。如果可用，则此用户必须用ukey登录；否则只能用帐号密码登录。
	private Calendar			freezetime;						// 账号被冻结的时间
	private Calendar			lastlogin;							// 最近一次登陆日期
	private Calendar			pwdupdate;							// 密码上次更新时间
	private Integer				logintimes;							// 登录次数
	private String				unencpassword;						//密码明文 
	private String				shortcuttype;						//快捷菜单显示类型
	private Integer				shortcutviewnum;					//快捷菜单显示条数
	
	public String getShortcuttype() {
		return shortcuttype;
	}

	public void setShortcuttype(String shortcuttype) {
		this.shortcuttype = shortcuttype;
	}

	public Integer getShortcutviewnum() {
		return shortcutviewnum;
	}

	public void setShortcutviewnum(Integer shortcutviewnum) {
		this.shortcutviewnum = shortcutviewnum;
	}

	public String getUkeyenabled() {
		return ukeyenabled;
	}

	public void setUkeyenabled(String ukeyenabled) {
		this.ukeyenabled = ukeyenabled;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getLogonid() {
		return logonid;
	}

	public void setLogonid(String logonid) {
		this.logonid = logonid;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmploeeid() {
		return emploeeid;
	}

	public void setEmploeeid(String emploeeid) {
		this.emploeeid = emploeeid;
	}

	public String getEnname() {
		return enname;
	}

	public void setEnname(String enname) {
		this.enname = enname;
	}

	public String getFullname() {
		return fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getOfficephone() {
		return officephone;
	}

	public void setOfficephone(String officephone) {
		this.officephone = officephone;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getPostid() {
		return postid;
	}

	public void setPostid(String postid) {
		this.postid = postid;
	}

	public String getParentids() {
		return parentids;
	}

	public void setParentids(String parentids) {
		this.parentids = parentids;
	}

	public String getParentnames() {
		return parentnames;
	}

	public void setParentnames(String parentnames) {
		this.parentnames = parentnames;
	}

	public String getOrgid() {
		return orgid;
	}

	public void setOrgid(String orgid) {
		this.orgid = orgid;
	}

	public Float getShoworder() {
		return showorder;
	}

	public void setShoworder(Float showorder) {
		this.showorder = showorder;
	}

	/**
	 * 判断用户是否合法
	 *
	 * @return
	 */
	public boolean isValid() {
		return this.getAge() != null ? this.getAge().after(Calendar.getInstance()) : true;
	}

	public String getLeader() {
		return leader;
	}

	public void setLeader(String leader) {
		this.leader = leader;
	}

	public String getMulriple() {
		return mulriple;
	}

	public void setMulriple(String mulriple) {
		this.mulriple = mulriple;
	}

	public String getParenttypes() {
		return parenttypes;
	}

	public void setParenttypes(String parenttypes) {
		this.parenttypes = parenttypes;
	}

	public String getSapid() {
		return sapid;
	}

	public void setSapid(String sapid) {
		this.sapid = sapid;
	}

	public String getLogintype() {
		return logintype;
	}

	public void setLogintype(String logintype) {
		this.logintype = logintype;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Calendar getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Calendar createdate) {
		this.createdate = createdate;
	}

	public Calendar getAge() {
		return age;
	}

	public void setAge(Calendar age) {
		this.age = age;
	}

	public Calendar getFreezetime() {
		return freezetime;
	}

	public void setFreezetime(Calendar freezetime) {
		this.freezetime = freezetime;
	}

	public Calendar getLastlogin() {
		return lastlogin;
	}

	public void setLastlogin(Calendar lastlogin) {
		this.lastlogin = lastlogin;
	}

	public Calendar getPwdupdate() {
		return pwdupdate;
	}

	public void setPwdupdate(Calendar pwdupdate) {
		this.pwdupdate = pwdupdate;
	}

	public Integer getLogintimes() {
		return logintimes;
	}

	public void setLogintimes(Integer logintimes) {
		this.logintimes = logintimes;
	}

	public String getUnencpassword() {
		return unencpassword;
	}

	public void setUnencpassword(String unencpassword) {
		this.unencpassword = unencpassword;
	}

}
